﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000689 RID: 1673
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetChessRogueNousStoryInfoScRsp : IMessage<GetChessRogueNousStoryInfoScRsp>, IMessage, IEquatable<GetChessRogueNousStoryInfoScRsp>, IDeepCloneable<GetChessRogueNousStoryInfoScRsp>, IBufferMessage
	{
		// Token: 0x1700159A RID: 5530
		// (get) Token: 0x06004B7F RID: 19327 RVA: 0x000CF22F File Offset: 0x000CD42F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetChessRogueNousStoryInfoScRsp> Parser
		{
			get
			{
				return GetChessRogueNousStoryInfoScRsp._parser;
			}
		}

		// Token: 0x1700159B RID: 5531
		// (get) Token: 0x06004B80 RID: 19328 RVA: 0x000CF236 File Offset: 0x000CD436
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetChessRogueNousStoryInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700159C RID: 5532
		// (get) Token: 0x06004B81 RID: 19329 RVA: 0x000CF248 File Offset: 0x000CD448
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetChessRogueNousStoryInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06004B82 RID: 19330 RVA: 0x000CF24F File Offset: 0x000CD44F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChessRogueNousStoryInfoScRsp()
		{
		}

		// Token: 0x06004B83 RID: 19331 RVA: 0x000CF270 File Offset: 0x000CD470
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChessRogueNousStoryInfoScRsp(GetChessRogueNousStoryInfoScRsp other) : this()
		{
			this.chessRogueSubStoryInfo_ = other.chessRogueSubStoryInfo_.Clone();
			this.chessRogueMainStoryInfo_ = other.chessRogueMainStoryInfo_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004B84 RID: 19332 RVA: 0x000CF2C2 File Offset: 0x000CD4C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetChessRogueNousStoryInfoScRsp Clone()
		{
			return new GetChessRogueNousStoryInfoScRsp(this);
		}

		// Token: 0x1700159D RID: 5533
		// (get) Token: 0x06004B85 RID: 19333 RVA: 0x000CF2CA File Offset: 0x000CD4CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ChessRogueNousSubStoryInfo> ChessRogueSubStoryInfo
		{
			get
			{
				return this.chessRogueSubStoryInfo_;
			}
		}

		// Token: 0x1700159E RID: 5534
		// (get) Token: 0x06004B86 RID: 19334 RVA: 0x000CF2D2 File Offset: 0x000CD4D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ChessRogueNousMainStoryInfo> ChessRogueMainStoryInfo
		{
			get
			{
				return this.chessRogueMainStoryInfo_;
			}
		}

		// Token: 0x1700159F RID: 5535
		// (get) Token: 0x06004B87 RID: 19335 RVA: 0x000CF2DA File Offset: 0x000CD4DA
		// (set) Token: 0x06004B88 RID: 19336 RVA: 0x000CF2E2 File Offset: 0x000CD4E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06004B89 RID: 19337 RVA: 0x000CF2EB File Offset: 0x000CD4EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetChessRogueNousStoryInfoScRsp);
		}

		// Token: 0x06004B8A RID: 19338 RVA: 0x000CF2FC File Offset: 0x000CD4FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetChessRogueNousStoryInfoScRsp other)
		{
			return other != null && (other == this || (this.chessRogueSubStoryInfo_.Equals(other.chessRogueSubStoryInfo_) && this.chessRogueMainStoryInfo_.Equals(other.chessRogueMainStoryInfo_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004B8B RID: 19339 RVA: 0x000CF360 File Offset: 0x000CD560
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.chessRogueSubStoryInfo_.GetHashCode();
			num ^= this.chessRogueMainStoryInfo_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004B8C RID: 19340 RVA: 0x000CF3BB File Offset: 0x000CD5BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004B8D RID: 19341 RVA: 0x000CF3C3 File Offset: 0x000CD5C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004B8E RID: 19342 RVA: 0x000CF3CC File Offset: 0x000CD5CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			this.chessRogueSubStoryInfo_.WriteTo(ref output, GetChessRogueNousStoryInfoScRsp._repeated_chessRogueSubStoryInfo_codec);
			this.chessRogueMainStoryInfo_.WriteTo(ref output, GetChessRogueNousStoryInfoScRsp._repeated_chessRogueMainStoryInfo_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004B8F RID: 19343 RVA: 0x000CF42C File Offset: 0x000CD62C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.chessRogueSubStoryInfo_.CalculateSize(GetChessRogueNousStoryInfoScRsp._repeated_chessRogueSubStoryInfo_codec);
			num += this.chessRogueMainStoryInfo_.CalculateSize(GetChessRogueNousStoryInfoScRsp._repeated_chessRogueMainStoryInfo_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004B90 RID: 19344 RVA: 0x000CF490 File Offset: 0x000CD690
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetChessRogueNousStoryInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.chessRogueSubStoryInfo_.Add(other.chessRogueSubStoryInfo_);
			this.chessRogueMainStoryInfo_.Add(other.chessRogueMainStoryInfo_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004B91 RID: 19345 RVA: 0x000CF4EE File Offset: 0x000CD6EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004B92 RID: 19346 RVA: 0x000CF4F8 File Offset: 0x000CD6F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 82U)
					{
						if (num != 106U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.chessRogueMainStoryInfo_.AddEntriesFrom(ref input, GetChessRogueNousStoryInfoScRsp._repeated_chessRogueMainStoryInfo_codec);
						}
					}
					else
					{
						this.chessRogueSubStoryInfo_.AddEntriesFrom(ref input, GetChessRogueNousStoryInfoScRsp._repeated_chessRogueSubStoryInfo_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001DE9 RID: 7657
		private static readonly MessageParser<GetChessRogueNousStoryInfoScRsp> _parser = new MessageParser<GetChessRogueNousStoryInfoScRsp>(() => new GetChessRogueNousStoryInfoScRsp());

		// Token: 0x04001DEA RID: 7658
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001DEB RID: 7659
		public const int ChessRogueSubStoryInfoFieldNumber = 10;

		// Token: 0x04001DEC RID: 7660
		private static readonly FieldCodec<ChessRogueNousSubStoryInfo> _repeated_chessRogueSubStoryInfo_codec = FieldCodec.ForMessage<ChessRogueNousSubStoryInfo>(82U, ChessRogueNousSubStoryInfo.Parser);

		// Token: 0x04001DED RID: 7661
		private readonly RepeatedField<ChessRogueNousSubStoryInfo> chessRogueSubStoryInfo_ = new RepeatedField<ChessRogueNousSubStoryInfo>();

		// Token: 0x04001DEE RID: 7662
		public const int ChessRogueMainStoryInfoFieldNumber = 13;

		// Token: 0x04001DEF RID: 7663
		private static readonly FieldCodec<ChessRogueNousMainStoryInfo> _repeated_chessRogueMainStoryInfo_codec = FieldCodec.ForMessage<ChessRogueNousMainStoryInfo>(106U, ChessRogueNousMainStoryInfo.Parser);

		// Token: 0x04001DF0 RID: 7664
		private readonly RepeatedField<ChessRogueNousMainStoryInfo> chessRogueMainStoryInfo_ = new RepeatedField<ChessRogueNousMainStoryInfo>();

		// Token: 0x04001DF1 RID: 7665
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04001DF2 RID: 7666
		private uint retcode_;
	}
}
